using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Lu62Viewer
{
    public partial class GoToCharPosition : Form
    {
        public GoToCharPosition()
        {
            InitializeComponent();
            txtPosition.Focus();
        }

        private int m_charPosition = -1;

        public int CharPosition
        {
            get { return m_charPosition; }
            set { m_charPosition = value; }
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            try
            {
                m_charPosition = int.Parse(txtPosition.Text);                
            }
            catch (Exception)
            {
                MessageBox.Show("Please, insert a valid number");
            }
        }
    }
}